package com.runfast.paotui.config;

import org.springframework.context.annotation.Configuration;

/**
 * @author: lijin
 * @date: 2018年04月26日
 */
public class DataSource {
    /*@Bean(name = "waimaiDataSource")
    @Qualifier("waimaiDataSource")
    @ConfigurationProperties(prefix = "spring.datasource.waimai")
    public DataSource primaryDataSource() {
        return DataSourceBuilder.create().build();
    }

    @Bean(name = "paotuiDataSource")
    @Qualifier("paotuiDataSource")
    @Primary
    @ConfigurationProperties(prefix = "spring.datasource.paotui")
    public DataSource secondaryDataSource() {
        return DataSourceBuilder.create().build();
    }*/
}
